﻿using System.Linq;
using YawetagLib.System.Data;

namespace YawetagDemo.Framework.Impl.Data
{
    internal class BandArtistRepository : DbModelBaseRepository<BandArtist>
    {
        public BandArtistRepository(IDataContext dataContext)
            : base(dataContext)
        {
        }

        public BandArtist Get(int bandID, int artistID)
        {
            return this.Where(i => i.BandID == bandID && i.ArtistID == artistID).Single();
        }
    }
}
